 package code.ws_common_net.support
{
	import code.ws_common_interface.base.ISer;
	
	import flash.utils.Dictionary;

	public class ServicePool
	{
		private static var _servicePool:Dictionary=new Dictionary();
		
		public static function initAll():void
		{
			for each(var serivce:ISer in _servicePool)
			{
				serivce.ini();
			}
		}
		
		/**添加业务*/
		public static function add(id:uint,service:ISer)
		{
			if(_servicePool[id]==null)
				_servicePool[id]=service;
		}
	}
}